ROICashFlowEntry

constructor(dateInt: Int, longValue: Long, investCurr: CurrencyType, startDateInt: Int, txnType: String? = null, source: MoneydanceSyncableItem? = null)

Parameters

dateInt

The entry's date.

longValue

The entry's value as a long, already expressed in terms of the destination currency investCurr.

investCurr

Currency to use (e.g. dollars, euro, etc., not shares).

startDateInt

The start of the reporting period. This can be changed later by calling setStartDate and it will recalculate annumsInPeriod on all entries.

txnType

The transaction type that generated this cash flow entry (optional, can be null)

source

Optional - the source object that originated this cash flow entry. This will often be SplitTxn, but could for example be an Account where an opening/closing balance is used


constructor(dateInt: Int, longValue: Long, investCurr: CurrencyType, startDateInt: Int)

Cashflow entries constructor. Simple version with no transaction type or source. Refer main constructor for details of parameters. (compatibility with the pre-MD2027 constructor for any java / api usage)

Since

MD2027

See also


constructor(splitTxn: SplitTxn, txnType: InvestTxnType?, investCurr: CurrencyType, startDateInt: Int)

Constructor from a security transaction (automatically determines the txnType and source settings).

Parameters

splitTxn

The transaction to be analyzed.

txnType

The type of transaction

investCurr

Currency to use (dollars, euro, etc., not shares).

startDateInt

The start of the reporting period.

See also